package cn.edu.sjtu.stap.sootbranchinstr.postprocess;

public class TargetAndCount implements Comparable<TargetAndCount> {
	private String key;
	private int count;
	
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}

	@Override
	public int compareTo(TargetAndCount another) {
		if(this.getCount() > another.getCount()){
			return 1;
		}else if(this.getCount() < another.getCount()){
			return -1;
		}
		
		return 0;
	}
}
